package itbour.onetouchshow.utils.crop.porterduff;


import itbour.onetouchshow.utils.crop.ILayer;
import itbour.onetouchshow.utils.crop.IShape;

/**
 * 采用PorterDuffXfermode实现的形状接口
 */
public interface IPorterDuffShape extends IShape {

    /**
     * 绘画具体的形状
     *
     * @param layer         预览层
     * @param canvasWrapper Canvas装饰类
     */
    void draw(ILayer layer, CanvasWrapper canvasWrapper);

    int width();

    int height();

}
